<template>
  <div class="dwForm">
    <a-modal
      :title="title"
      :visible="visible"
      :width="width"
      :confirm-loading="confirmLoading"
      @ok="handleOk"
      @cancel="handleCancel"
    >
      <div v-if="visible">
        <dw-form :columns="columns" :formData="formData" ref="dwForm"></dw-form>
      </div>
    </a-modal>
  </div>
</template>

<script>
import { EditMixin } from 'daowey-vueweb'

export default {
  name: 'TableEdit',
  mixins:[EditMixin],
  props: {
    
  },
  data() {
    return {
      tableCode:"User",
      createFields:['name', 'userName','phone','password','userStatus', 'isAdmin','role'],
      updateFields:['name', 'userName','phone','userStatus', 'isAdmin','role'],
      confirmLoading:false
    }
  },

  methods: {
    preCreate(form){
      form['userType'] = 'manage'
    }
  }
}
</script>

<style scoped>
.line{
  text-align: center;
}
</style>

